import request from '../utils/request.js'

//商品list查询
export const api_query=(data)=>{
    return request.get('/goods/list',data)
}

// 商品删除
export const api_del=(data)=>{
    return request.get('/goods/del',data)
}

// 添加商品
export const api_add=(data)=>{
    return request.post('/goods/add',data)
}

//查询商品分类
export const api_queryType=(data)=>{
    return request.get('/goods/categories',data)
}

//修改商品
export const api_update=(data)=>{
    return request.post('/goods/edit',data)
}